xl: introduce a function to get shutdown action name
authorWei Liu <wei.liu2@citrix.com>
Mon, 27 Feb 2017 17:28:17 +0000 (17:28 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 28 Feb 2017 10:40:07 +0000 (10:40 +0000)
commite5b54dbe517f90ab0f316ad515ca9e2e64111e8b
tree29a2281900413d9767c418c252b9d6e22fe5b9fd
parent0b53eb4eeb2abd4775c0da0393b7cd7a8ef9f4e8
xl: introduce a function to get shutdown action name

The array to map libxl_shutdown_action_to_shutdown to string is going to
be moved to a dedicated file.

Provide a function to do the translation so that we don't need to make
the array globally visible.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xl/xl_cmdimpl.c